/*
 * ISocket.h
 *
 *  Created on: 23.10.2011
 *      Author: niea
 */

#ifndef ISOCKET_H_
#define ISOCKET_H_

#include <string>
#include <vector>

class ISocket {
public:
	ISocket();
	virtual ~ISocket();
	virtual int connectServer(std::string ip, size_t port) = 0;
	virtual int disconnect() = 0;
	virtual int sendMessage(std::vector<char> const& msg) = 0;
	virtual int receiveMessage(std::vector<char> & msg) = 0;
};

#endif /* ISOCKET_H_ */
